<template>
  <div>
    <div>
      <router-view></router-view>
    </div>

    <van-tabbar v-model="active" v-show="isShow">
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/classify">分类</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="Itsmine">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="Shoppingcart">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
//Itsmine
// import { Gett } from "@/api";
export default {
  data() {
    return {
      active: 0,
      isShow: true,
    };
  },

  // async created() {
  //   const http = await Gett();
  // },
  watch: {
    $route: {
      deep: true,
      immediate: true,
      handler(val) {
        // this.active = val.name;
        this.isShow = val.meta.isShow;
      },
    },
  },
  methods: {
    async fn() {},
  },
};
</script>

<style lang="less" scoped></style>
